home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Complete Linux
/
Complete Linux.iso
/
docs
/
apps
/
circuits
/
spice2g6.z
/
spice2g6
/
spice
/
Fortran
/
cdiv.f
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1989-02-03
|
354 b
|
13 lines
subroutine cdiv(xr,xi,yr,yi,cr,ci)
c.. ok if cr and ci are really xr and xi or yr and yi
implicit double precision (a-h,o-z)
xrtemp=xr
xitemp=xi
yrtemp=yr
yitemp=yi
amag2=yrtemp*yrtemp+yitemp*yitemp
cr=(xrtemp*yrtemp+xitemp*yitemp)/amag2
ci=(xitemp*yrtemp-xrtemp*yitemp)/amag2
return
end